 //深拷贝
 export default function deepClone(data){
    const cloneObj = data.constructor === Array ? [] : {};
    for(let keys in data){
      if(data.hasOwnProperty(keys)){
        if(data[keys] && typeof data[keys] === 'object'){
          //如果属性仍是对象 递归
          cloneObj[keys]=deepClone(data[keys]);
        }else{
          cloneObj[keys]=data[keys];
        }
      }
    }
    return cloneObj;
  }
